package com.dragon.logical.service.auth;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.repository.entity.Workflow;

import java.util.List;

/**
 * <p>
 * 工作流配置表 服务类
 * </p>
 *
 * @author sy
 * @since 2023-07-04
 */
public interface IWorkflowService extends IService<Workflow> {

    Page<Workflow> selectPageList(Integer type, String name, Integer page, Integer limit);

    void addWorkflow(Workflow workflow);

    void updateWorkflow(Workflow workflow);

    void deleteWorkflow(String ids);

    Workflow selectWorkflowById(Integer id);

    List<Workflow> selectListByType(Integer type);
}
